package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CollectBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.COLLECTION_LIST)
public class ConnCollectList extends BaseAsyPost<CollectBean>{

    public String member_id,page;


    public ConnCollectList(String member_id, String page, AsyCallBack<CollectBean> asyCallBack) {
        super(asyCallBack);
        this.member_id=member_id;
        this.page=page;


    }

    @Override
    protected CollectBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");

        Gson gson=new Gson();

        CollectBean loginBean=new CollectBean();
        loginBean=gson.fromJson(object.toString(),CollectBean.class);


        return loginBean;


    }
}



